import { observable } from "mobx";

interface IStoreProps {
  _scp: string;
  dvList: DV.IOption[];
  reportList: any[];
}

const groupStore: IStoreProps = observable({
  _scp: 'scp_1013e-2fa17wqx-ov37ln', // 空间唯一标识
  dvList: [{
    name: 'test',
    id: 1,
    uuid: 'dv-uuid-1013e-2fa17wqx',
    width: 1920,
    height: 1080,
    adapterMode: 'height',
    bgConfig: {
      bgUrl: '/assets/dv/bg.png',
      bgColor: 'rgb(3, 12, 59)',
      bgOpacity: 1,
      bgBlur: 0
    },
    charts: [
      {
        name: 'iframe',
        uid: 'FIRST_COMPONENT1',
        left: 100,
        top: 40,
        width: 200,
        height: 100,
        zIndex: 1,
        type: 'html_iframe',
        frameType: 'html',
        config: {},
        "dataType": "static",
        "dataModelHash": "",
        "dataApiUrl": "$CUR_HOST/openapi/demo/chart?type=iframe",
        "dataConfig": {
          "continuity_type": "simple",
          "continuity_time_step": "1Hour",
          "continuity_empty_val": "0",
          "data": "http://localhost:9001/group/",
          "needAutoRefresh": true,
          "autoRefreshInterval": 1800
        },
      },
      {
        name: '第2个组件',
        uid: 'FIRST_COMPONENT2',
        left: 500,
        top: 100,
        width: 400,
        height: 300,
        zIndex: 1,
        type: 'echarts_init',
        frameType: 'echarts',
        config: {

        },
        "dataType": "static",
        "dataModelHash": "",
        "dataApiUrl": "$CUR_HOST/openapi/demo/chart?type=iframe",
        "dataConfig": {
          "continuity_type": "simple",
          "continuity_time_step": "1Hour",
          "continuity_empty_val": "0",
          "data": "https://www.iconfont.cn/",
          "needAutoRefresh": true,
          "autoRefreshInterval": 1800
        },

      },
      {
        name: 'echarts折线图',
        uid: 'FIRST_COMPONENT3',
        left: 500,
        top: 700,
        width: 400,
        height: 300,
        zIndex: 1,
        type: 'echarts_line',
        frameType: 'echarts',
        config: {

        },
        "dataType": "static",
        "dataModelHash": "",
        "dataApiUrl": "$CUR_HOST/openapi/demo/chart?type=iframe",
        "dataConfig": {
          "continuity_type": "simple",
          "continuity_time_step": "1Hour",
          "continuity_empty_val": "0",
          "data": "https://www.iconfont.cn/",
          "needAutoRefresh": true,
          "autoRefreshInterval": 1800
        },

      }
    ],

  }],
  reportList: [],

});

export default groupStore;
